/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.homesoft.util;

/**
 *
 * @author phucan
 */
public class ListItem implements Comparable<ListItem>{
    String text;
    Object value;

    public ListItem(String text, Object value) {
        this.text = text;
        this.value = value;
    }

    public ListItem() {
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

  

    @Override
    public int compareTo(ListItem o) {
        return this.text.compareTo(o.text);
    }
    
}
